package com.gdit.revenue.service.Impl;

import com.gdit.revenue.base.result.Results;
import com.gdit.revenue.dao.RoleDao;
import com.gdit.revenue.model.Role;
import com.gdit.revenue.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleDao roleDao;

    @Override
    public Results getAllRoles() {
        return Results.success(3,roleDao.getAllRoles());
    }
}
